﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace soma.Models.Resources
{
    [DataContractAttribute]
    public class Resource : IResource
    {
        [DataMemberAttribute]
        public string Id { get; set; }

        [DataMemberAttribute]
        public string Url { get; set; }

        [DataMemberAttribute]
        public string ThumbnailUrl { get; set; }

        [DataMemberAttribute]
        public bool IsSynonym { get; set; }

        [DataMemberAttribute]
        public string Tag { get; set; }

        [DataMemberAttribute]
        public string Author { get; set; }

        [DataMemberAttribute]
        public string Website { get; set; }

        [DataMemberAttribute]
        public DateTime Date { get; set; }

        [DataMemberAttribute]
        public DateTime DownloadedDate { get; set; }

        [DataMemberAttribute]
        public Coordinates ResourceCoordinates { get; set; }

        [DataMemberAttribute]
        public List<Link> Links { get; set; }

        public Resource()
        {
            ResourceCoordinates = new Coordinates();
        }
    }
}